﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

/// <summary>
/// Summary description for Content
/// </summary>
public class Content
{
    private Control hostForm;
	public Content()
	{
		//
		// TODO: Add constructor logic here
		//
	}
    public Control HostForm
    {
        set
        {
            hostForm = value;
        }
    }
    public void SelectAdd()
    {
        /*if (hostForm.ToString() == "ASP.default_aspx")
            AddDefault();
        else if (hostForm.ToString() == "ASP.home_aspx")
            AddHome();
        else if (hostForm.ToString() == "ASP.contact_aspx")
            AddContact();
        else if (hostForm.ToString() == "ASP.calendar_aspx")
            AddCalendar();
        else if (hostForm.ToString() == "ASP.mail_aspx")
            AddMail();*/
    }
    private void AddDefault()
    {
        hostForm.Controls.Add(new LiteralControl(@"
            <div class='content'>
                <b>Content Default Page</b>
                <p><u>Update 10/27/2008 22:57</u></p>
                - Simple Login Page<br>
                - Simple User Home Page<br>
                - Web Site Map<br>
                <p><u>In Progress</u></p>
                - Show Contact List <br>
                - Show Calendar <br>
                - Simple Registration Wizard <br>
                <p>-----------------------------------
            </div>
            "));
    }
    private void AddHome()
    {
        hostForm.Controls.Add(new LiteralControl(@"
            <div class='content'>
                <b>Content User [Home] Page</b>
            </div>
            "));
    }
    private void AddContact()
    {
        hostForm.Controls.Add(new LiteralControl(@"
            <div class='content'>
                <b>Content User [Contact] Page</b>
            </div>
            "));
    }
    private void AddCalendar()
    {
        hostForm.Controls.Add(new LiteralControl(@"
            <div class='content'>
                <b>Content User [Calendar] Page</b>

            </div>
            "));
    }
    private void AddMail()
    {
        hostForm.Controls.Add(new LiteralControl(@"
            <div class='content'>
                <b>Content User [Mail] Page</b>

            </div>
            "));
    }
}
